<template>
	<view class="ou">
		<view class="item" v-for="(item,index) in goods" :key="item.id">
			<checkbox></checkbox>
			<text class="title">{{item.name}}</text>
			<text class="del" @click="remove(index)">删除</text>
		</view>
	</view>
	<view class="out">
		<input type="text" :value="iptValue" @focus="onfocus"/>
		<image src="/static/picture1.jpg" mode="" class="pic"></image>
	</view>
</template>

<script setup>
import {ref} from "vue"
function onfoccus(e){
	
}
const iptValue = ref("123")
const goods = ref([
	{id:11,name:"小米"},
	{id:22,name:"华为"},
	{id:33,name:"oppo"},
	{id:44,name:"苹果"},
])
function remove(index){
	goods.value.splice(index,1)
}
</script>

<style lang="scss" scop
ed>
	.out{
		padding: 0 20px;
		margin: 40px;
		position: relative;
		input{
			border: 1px solid red;
			height: 66px;
			position: relative;
			z-index: 2;
			background-color: white;
		}
		.pic{
			width: 35px;
			height: 35px;
			z-index: 1;
			position: absolute;
			top: -35px;
			left: -8px;
		}
	}
.ou{
	padding: 10px;
	.item{
		padding: 10px 0;
		.del{
			color: red;
			margin-left: 30px;
		}
	}
}
</style>
